package com.visikard.item;

import java.io.Serializable;

import org.json.JSONObject;

public class UserProfile implements Serializable{
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	private String imageSmall = null;
	private long pointUser = -1;
	private long idProfile = -1;
	private long fkUser = -1;
	private int sortMyKard = -1;
	private int feedUnread = -1;
	private int feedUnreadMedeck = -1;
	private int userVisible = -1;
	private int notification = -1;
	private int sounds = -1;
	private int messageUnread = -1;
	private int numberWaitingArrove = -1;
	private int showUnread = -1;
	private long idKards = -1;
	private String fullName = null;
	private String fName = null;
	private String lName = null;
	
	public UserProfile(){
		
	}
	
	public UserProfile(JSONObject jsonObject){
		if(jsonObject == null)
			return;
		try {
			fullName = jsonObject.optString("fullName", "");
			fkUser = jsonObject.optLong("fkUser",-1);
			imageSmall = jsonObject.optString("imageSmall","");
			if(imageSmall.equals("null")){
				imageSmall = "";
			}

			idProfile = jsonObject.optLong("idProfile",-1);
			idKards = jsonObject.optLong("idKards",-1);	
			sortMyKard = jsonObject.optInt("sortMyKard", -1);						
			numberWaitingArrove = jsonObject.optInt("numberWaitingArrove", -1);
			showUnread = jsonObject.optInt("showUnread", -1);
			feedUnread = jsonObject.optInt("feedUnread", -1);
			feedUnreadMedeck = jsonObject.optInt("feedUnreadMedeck", -1);
			userVisible = jsonObject.optInt("userVisible", -1);
			pointUser = jsonObject.optLong("pointUser", -1);
			notification = jsonObject.optInt("notification", -1);
			sounds = jsonObject.optInt("sounds", -1);
			messageUnread = jsonObject.optInt("messageUnread", -1);
			fName = jsonObject.optString("fName", "");
			lName = jsonObject.optString("lName", "");
			
		} catch (Exception e) {
			e.printStackTrace();
		}
	}	

	

	public String getFullName() {
		return fullName;
	}

	public void setFullName(String fullName) {
		this.fullName = fullName;
	}

	public long getFkUser() {
		return fkUser;
	}

	public void setFkUser(long fkUser) {
		this.fkUser = fkUser;
	}
	

	public String getImageSmall() {
		return imageSmall;
	}

	public void setImageSmall(String imageSmall) {
		this.imageSmall = imageSmall;
	}
	
	public long getIdProfile() {
		return idProfile;
	}

	public void setIdProfile(long idProfile) {
		this.idProfile = idProfile;
	}

	public long getIdKards() {
		return idKards;
	}

	public void setIdKards(long idKards) {
		this.idKards = idKards;
	}	

	public int getNumberWaitingArrove() {
		return numberWaitingArrove;
	}

	public int getShowUnread() {
		return showUnread;
	}

	public int getFeedUnread() {
		return feedUnread;
	}

	public int getFeedUnreadMedeck() {
		return feedUnreadMedeck;
	}

	public int getUserVisible() {
		return userVisible;
	}

	public long getPointUser() {
		return pointUser;
	}
	
	public int getNotification() {
		return notification;
	}

	public int getSounds() {
		return sounds;
	}

	public int getSortMyKard() {
		return sortMyKard;
	}

	public int getMessageUnread() {
		return messageUnread;
	}

	public String getfName() {
		return fName;
	}

	public String getlName() {
		return lName;
	}	
}
